<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<include file="Public/header"/>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>


</head>

<body>

<div id="wrapper">

	<include file="Public/left" />
	<div id="page-wrapper">
		<div class="row">
			<div class="col-lg-12">
				<h1 class="page-header"> 
					<if condition="$info">
					编辑
					<else/>
					添加
					</if>
				</h1>
			</div>
			<!-- /.col-lg-12 -->
		</div>
		<!-- /.row -->
		<div class="row">
			<div class="col-lg-5 col-md-7 col-sm-12">
				<form role="form" method="post" action=""  enctype="multipart/form-data">
					<if condition="$info">
						<input type="hidden" name="id" value="{$info['id']} "/>
					</if>
					<div class="form-group">
						<label>招聘分类</label>
						<select name="cid" class="form-control">
							<volist name="class" id="list">
							<option value="{$list['id']}" <if condition="$info['cid'] eq $list['id']">selected="selected"</if>  >{$list['grade']|fungradeo}{$list['name']}</option>
							</volist>
						</select>
					</div>
					<div class="form-group">
						<label>标题</label>
						<input class="form-control" name="title" value="{$info['title']}" >
					</div>
					<div class="form-group">
						<label>图片</label>
						<input class="form-control" name="img" value="" type="file">
						<if condition="$info['img']">
							<img src="{$info['img']}" style="max-width:200px;">
						</if>
					</div>
					<div class="form-group">
						<label>排序</label>
						<input class="form-control" name="sort" value="{$info['sort']}" >
					</div>
					<div class="form-group">
						<label>类型</label>
						<input name="attr" value="0" type="radio" <if condition="($info['attr'] eq 0) or ($info['attr'] eq '')">checked</if>>招聘信息
						<input name="attr" value="1" type="radio" <if condition="$info['attr'] eq 1">checked</if>>求职信息
					</div>
					<div class="form-group">
						<label>描述</label>
						<script name="content" id="content" style="width:100%; height:400px;">{$info['content']|html_entity_decode}</script>
					</div>
					<div class="form-group">
						<input class="btn btn-primary" name="submit" type="submit" value="　提　交　"/>
					</div>
				</form>
			</div>
		</div>
	</div>
	<!-- /.row -->
</div>
<!-- /#page-wrapper -->

	</div>
	<!-- /#wrapper -->

	<include file="Public/footer" />

	<!-- Morris Charts JavaScript -->
	<script src="__PUBLIC__/Admin/bower_components/raphael/raphael-min.js"></script>
	<script src="__PUBLIC__/Admin/bower_components/morrisjs/morris.min.js"></script>
	<script src="__PUBLIC__/Admin/js/morris-data.js"></script>

</body>
<script>
	var ue = UE.getEditor('content');
	ue.ready(function() {
		//ue.setContent('{$info['cdetails']}');
	});
</script>      

</html>
